<?php

class Cookie
{	
	private function __construct(){}
	
	public static function get($name)
	{
		return $_COOKIE[$name];
	}
	
	public static function set($name, $value, $timeout = null)
	{
		return setcookie($name, $value, ($timeout != null ? time()+$timeout : null));
	}
	
	public function exists($name)
	{
		return isset($_COOKIE[$name]);
	}
}

?>